import React from "react";
import { Result, Button } from "antd";
import { useNavigate } from "react-router-dom";
import { ROUTES } from "../constants/routes";

const NotFound: React.FC = () => {
    const navigate = useNavigate();
    return (
        <Result
            status="404"
            title="404"
            subTitle="页面未找到"
            extra={<Button type="primary" onClick={() => navigate(ROUTES.login)}>返回登录</Button>}
        />
    );
};

export default NotFound;


